from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC


dirver_path = r"C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe"
driver = webdriver.Chrome(executable_path=dirver_path)
driver.get("https://www.douban.com")
# driver.implicitly_wait(15)
# driver.find_element_by_id("asdfadsfadsf")

element = WebDriverWait(driver,10).until(
    EC.presence_of_element_located((By.ID,'username'))
)

print(element)


